<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Rain的学习日记</title>
    <link rel="stylesheet" href="style.css">
</head>
<body>
    <!-- 导航栏 -->
    <nav class="navbar">
        <div class="nav-container">
            <h1 class="logo">Rain的学习日记</h1>
            <ul class="nav-menu">
                <li><a href="#home">首页</a></li>
                <li><a href="#diaries">日记</a></li>
                <li><a href="#about">关于我</a></li>
                <li><a href="#contact">联系</a></li>
            </ul>
            <div class="hamburger">
                <span class="bar"></span>
                <span class="bar"></span>
                <span class="bar"></span>
            </div>
        </div>
    </nav>

    <!-- 首页英雄区域 -->
    <section id="home" class="hero">
        <div class="hero-content">
            <h2>记录代码路上的点点滴滴</h2>
            <p>一名前端开发者的学习与成长历程</p>
            <a href="#diaries" class="cta-button">阅读日记</a>
        </div>
    </section>

    <!-- 日记列表区域 -->
    <section id="diaries" class="diaries-section">
        <div class="container">
            <h2 class="section-title">学习日记</h2>
            <div class="diaries-grid" id="diaries-grid">
                <!-- 日记卡片将通过JavaScript动态生成 -->
            </div>
        </div>
    </section>

    <!-- 日记详情模态框 -->
    <div id="diary-modal" class="modal">
        <div class="modal-content">
            <span class="close">&times;</span>
            <h2 id="modal-title"></h2>
            <p class="diary-date" id="modal-date"></p>
            <div id="modal-content"></div>
        </div>
    </div>

    <!-- 关于我区域 -->
    <section id="about" class="about-section">
        <div class="container">
            <h2 class="section-title">关于我</h2>
            <div class="about-content">
                <div class="about-text">
                    <p>你好，我是Rain，一名热爱技术的前端开发者。</p>
                    <p>我喜欢探索新技术，解决实际问题，并通过这个日记记录我的学习历程。</p>
                    <p>目前专注于JavaScript框架和响应式Web设计。</p>
                </div>
                <div class="about-image">
                    <img src="https://picsum.photos/400/400" alt="Rain的照片">
                </div>
            </div>
        </div>
    </section>

    <!-- 联系表单区域 -->
    <section id="contact" class="contact-section">
        <div class="container">
            <h2 class="section-title">联系我</h2>
            <form id="contact-form" class="contact-form">
                <div class="form-group">
                    <label for="name">姓名</label>
                    <input type="text" id="name" name="name" required>
                </div>
                <div class="form-group">
                    <label for="email">邮箱</label>
                    <input type="email" id="email" name="email" required>
                </div>
                <div class="form-group">
                    <label for="message">留言</label>
                    <textarea id="message" name="message" rows="5" required></textarea>
                </div>
                <button type="submit" class="submit-btn">发送</button>
            </form>
        </div>
    </section>

    <!-- 页脚 -->
    <footer class="footer">
        <div class="container">
            <p>&copy; 2023 Rain的学习日记. 保留所有权利.</p>
        </div>
    </footer>

    <script src="script.js"></script>
</body>
</html>